package com.aurora.service;

import com.aurora.model.vo.Result;
import com.aurora.model.vo.rabbitMQ.MqttBody;
import org.springframework.stereotype.Component;

@Component
public interface MqttService {

    /**
     * 发送消息
     *
     * @param mqttBody 消息体
     * @return Result
     */

    Result<?> sendMessage(MqttBody mqttBody);

    /**
     * 得到所有在线用户
     */
    Result<?> getAllLoginUser();
}
